package classes
{
	import mx.collections.ArrayCollection;
	import mx.controls.LinkButton;
	
	public class LinkCustom extends LinkButton
	{
		private var _form:FormPersonalizado;
		
		public function createItemForm(itens:ArrayCollection):void
		{
			for each(var item:Object in itens)
			{
				if (item.@tipo == "input")
					this._form.addInput(item.@descricao, item.@id, item.@tamanho, item.@maxChars, item.@required);
			}
		}

		public function createForm(width:int, height:int):void
		{
			this._form = new FormPersonalizado(width, height);
		}
		public function ConcluirForm():void
		{
			this._form.MontarForm();
		}
		public function get Form():FormPersonalizado
		{
			return this._form;
		}
		
		public function LinkCustom()
		{
			super();
		}

	}
}